﻿//------------------------------------------------------------
// shaco Framework
// Copyright © 2017-2021 chang.liu All rights reserved.
// Feedback: 449612236@qq.com
//------------------------------------------------------------

namespace shaco.Base
{
    public class AudioManager : IAudioManager, ISoundManager, IMusicManager, IVoiceManager
    {
        /// <summary>
        /// 音量
        /// </summary>
        public float volume { get { throw new System.NotImplementedException("AudioManager.volume"); } }

        /// <summary>
        /// 播放或者恢复播放
        /// <param name="audio">音频</param>
        /// </summary>
        public void Play(IAudio audio)
        {
            throw new System.NotImplementedException("AudioManager.Play");
        }

        public void Play(string path)
        {
            throw new System.NotImplementedException("AudioManager.Play");
        }

        /// <summary>
        /// 关闭最后一次正在播放的音频
        /// <param name="isStop">true：关闭最后一次正在播放音乐 false：暂停最后一次正在播放音乐</param>
        /// </summary>
        public void Pop(bool isStop = true)
        {
            throw new System.NotImplementedException("AudioManager.Pop");
        }

        /// <summary>
        /// 暂停
        /// <param name="audio">音频</param>
        /// </summary>
        public void Pause(IAudio audio)
        {
            throw new System.NotImplementedException("AudioManager.Pause");

        }

        /// <summary>
        /// 停止
        /// <param name="audio">音频</param>
        /// <return>是否停止成功</return>
        /// </summary>
        public bool Stop(IAudio audio)
        {
            throw new System.NotImplementedException("AudioManager.Stop");
        }
        public bool Stop(string path)
        {
            throw new System.NotImplementedException("AudioManager.Stop");
        }

        /// <summary>
        /// 恢复所有
        /// </summary>
        public void ResumeAll()
        {
            throw new System.NotImplementedException("AudioManager.ResumeAll");

        }

        /// <summary>
        /// 暂停所有
        /// </summary>
        public void PauseAll()
        {
            throw new System.NotImplementedException("AudioManager.PauseAll");

        }

        /// <summary>
        /// 停止所有
        /// </summary>
        public void StopAll()
        {
            throw new System.NotImplementedException("AudioManager.StopAll");

        }

        /// <summary>
        /// 判断是否有该音频正在播放
        /// <param name="audio">音频</param>
        /// </summary>
        public bool IsAudioPlaying(IAudio audio)
        {
            throw new System.NotImplementedException("AudioManager.IsAudioPlaying");

        }

        /// <summary>
        /// 判断是否有该音频
        /// <param name="audio">音频</param>
        /// </summary>
        public bool HasAudio(IAudio audio)
        {
            throw new System.NotImplementedException("AudioManager.HasAudio");

        }

        /// <summary>
        /// 设置音量大小
        /// <param name="percent">音量大小百分比(0 ~ 1)</param>
        /// </summary>
        public void SetVolume(float percent)
        {
            throw new System.NotImplementedException("AudioManager.SetVolume");

        }

        /// <summary>
        /// 设置单个音频的音量大小
        /// <param name="audio">音频对象</param>
        /// <param name="percent">音量大小百分比(0 ~ 1)</param>
        /// </summary>
        public void SetVolume(IAudio audio, float percent)
        {
            throw new System.NotImplementedException("AudioManager.SetVolume");

        }

        /// <summary>
        /// 获取当前正在播放的音频
        /// </summary>
        public IAudio[] GetCurrentPlayingAudio()
        {
            throw new System.NotImplementedException("AudioManager.GetCurrentPlayingAudio");
        }
    }
}